﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


public class Path
{
    //fields
    private List<Point3D> pathList;

    //constructor
    public Path()
    {
       pathList=new List<Point3D>();
    }

    public Path(List<Point3D> path)
    {
        this.pathList = path;
    }

    //properties
    public List<Point3D> PathList
    {
        get { return pathList; }
        set { this.pathList = value; }
    }

    //methods
    public List<Point3D> AddPoint(Point3D point)
    {
        pathList.Add(point);
        return pathList;
    }

    public static void PrintPath(Path path)
    {
        for (int i = 0; i < path.pathList.Count; i++)
        {
            Console.WriteLine(path.pathList[i].ToString());
        }
    }
}

